package com.xishu.to.foodpanda;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class FoodPandaMenu extends FoodPandaBase {
    private static final long serialVersionUID = 4565495362824069956L;

    @ApiModelProperty(value = "标题")
    private FoodPandaZhEn title;

    @ApiModelProperty(value = "menu类型,1是Delivery, 2是Pick UP")
    private String menuType;

    @ApiModelProperty(value = "对应的schedule对象")
    @FoodPandaAnnotation(addId = true)
    private FoodPandaBase schedule;

    @ApiModelProperty(value = "包含有哪些菜")
    @FoodPandaAnnotation(listToObject = true)
    private List<FoodPandaBase> products;

    public FoodPandaMenu() {
        super.type = "Menu";
    }
}
